<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>{!#SITE_NAME#!} | {!$pageTitle!}</title>
<meta name="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="Keywords" content="{!#SITE_KEYWORDS#!}"/>
<meta name="Description" content="{!$pageDescription|default:#SITE_DESCRIPTION#!}"/>
<link type="text/css" rel="stylesheet" href="/css/outlook.css?{!$VERSION!}"/>
</head> 
<body>
<div id="header" class="c">
	<div id="loginAndSearch">
		{!if $loginActor!}
		欢迎你，<a href="/people/{!$loginActor.actorId!}/profile" class="nickname" id="nicknameLink">{!$loginActor.nickname!}</a>&nbsp;&nbsp;&nbsp;
		<a href="/logout?rurl={!$curUrl!}" onclick="return confirm('你确定要退出登陆吗？');"/>注销</a>
		{!else!}
		<a href="/login?rurl={!$curUrl!}">登录</a> <a href="/register?rurl={!$curUrl!}">注册</a>
		{!/if!}
		<form action="/search" method="get" onsubmit="return __ss(this);">
			<a href="/recipe/add" class="b">+ 添加菜谱</a>&nbsp;&nbsp;
			<input type="text" style="width:200px;" name="keyword" value="{!$keyword!}"/>
			<input type="submit" value="搜  索" id="search_btn"/>
		</form>
		<script type="text/javascript">function __ss(f){if(!f.keyword.value||!f.keyword.value.replace(/^\s*|\s*$/,'')){f.keyword.focus();return false;}return true;}</script>
	</div>
	<div>
		<a href="/"><img id="logo" alt="{!#SITE_NAME#!}" src="/images/logo.gif"/></a>
		<ul class="u h" id="menu">
			<li><a href="/">{!#HOME_TEXT#!}</a></li>
			<li><a href="/mykitchen">{!#MY_KITCHEN_TEXT#!}</a></li>
			<li><a href="/tags">{!#CATEGORY_TEXT#!}</a></li>
		</ul>
	</div>
</div>
<div class="c" id="main">
{!$smarty.capture.main!}
{!if $smarty.capture.left!}
	<div id="left">
	{!$smarty.capture.left!}
	</div>
{!/if!}
{!if $smarty.capture.right!}
	<div id="right">
	{!$smarty.capture.right!}
	</div>
{!/if!}
</div>
</body>
<script type="text/javascript" src="/js/jquery.js"></script>
{!$smarty.capture.jsCode!}
</html>